# include <vtkConeSource.h>
# include <vtkPolyDataMapper.h>
# include <vtkRenderer.h>
# include <vtkRenderWindow.h>
# include <vtkActor.h>
# include <vtkCamera.h>

int main()
{
    vtkConeSource *cone=vtkConeSource::New();
    cone->SetResolution(3);
    cone->SetHeight(5);
    cone->SetRadius(2);

    vtkPolyDataMapper *coneMapper=vtkPolyDataMapper::New();
    coneMapper->SetInput(cone->GetOutput());
    vtkActor *coneActor=vtkActor::New();
    coneActor->SetMapper(coneMapper);
    vtkRenderer *renderer=vtkRenderer::New();
    renderer->AddActor(conActor);
    renderer->SetBackground(0.1,0.2,0.4);
    vtkRenderWindow *rerWindow = vtkRenderWindow::New();
    rerWindow->SetSize(400,200);
    rerWindow->AddRenderer(renderer);
    for (int i=0; i=3600; i++)
    {
        renWindow->Render();
        renderer->GetActiveCamera()-> Azimuth(1) ;

    }
    
    cone->Delete();
    coneActor->Delete();
    coneMapper->Delete();
    renderer->Delete();
    renWindow->Delete();

    return 0;
